home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 39
/
Aminet 39 (2000)(Schatztruhe)[!][Oct 2000].iso
/
Aminet
/
mus
/
misc
/
spcli.lha
/
SongPlayerCLI
/
Rexx
/
SpCLI
/
Find.rexx
< prev
next >
Wrap
OS/2 REXX Batch file
|
2000-08-23
|
1KB
|
60 lines
/*
SongPlayerCLI v1.52 (by Gareth Griffiths)
E-Mail: gazchap@btinternet.com
Find.rexx - Finds a file based on the 'TITLE' ID3 Tag.
*/
IF ~SHOW('P','SONGPLAYER.1') THEN DO
ADDRESS COMMAND
SAY "Can't find ARexx port 'SONGPLAYER.1'"
EXIT
END
OPTIONS RESULTS
PARSE ARG srch
ADDRESS 'SONGPLAYER.1'
'GET_SELECTED'
old=result
ADDRESS COMMAND
IF srch = "" THEN DO
OPTIONS PROMPT 'Enter search string: '
PULL srch
END
SAY 'Searching...'
ADDRESS SONGPLAYER.1
g=0
found=0
'STOP'
'GET_COUNT'
last=result
DO f=1 to last
ADDRESS SONGPLAYER.1
'SELECT 'f
'GET_TITLE'
title=result
'GET_ARTIST'
artist=result
var=pos(UPPER(srch),UPPER(title),1)
IF var>0 THEN DO
g = g + 1
found = found + 1
ADDRESS COMMAND
IF f<10 then do
SAY ' · ('f') 'artist': 'title
END
if f>9 then do
SAY ' · ('f') 'artist': 'title
END
END
if g=25 then do
g=0
address command
options prompt '(More - Press RETURN)'
pull more
end
END
SAY ''found' matche(s) found.'
ADDRESS SONGPLAYER.1
'SELECT 'old
'PLAY'
EXIT